CC=g++
CFLAGS=-Wall -c -g

all: wxtriangulator

wxtriangulator: main.o window.o algorithms.o
	$(CC) -Wall -o wxtriangulator `wx-config --libs` `wx-config --cxxflags` main.o window.o algorithms.o

main.o: main.cpp main.hpp
	$(CC) $(CFLAGS) `wx-config --cxxflags` main.cpp

window.o: window.cpp window.hpp icon.xpm
	$(CC) $(CFLAGS) `wx-config --cxxflags` window.cpp

algorithms.o: algorithms.cpp algorithms.hpp
	$(CC) $(CFLAGS) `wx-config --cxxflags` algorithms.cpp

clean:
	rm *.o wxtriangulator
